#include <stdio.h>
#include <string.h>
#define MAXS 15

void StringCount( char s[] );
void ReadString( char s[] ); /* 由裁判实现，略去不表 */

int main()
{
    char s[MAXS];

    ReadString(s);
    StringCount(s);

    return 0;
}

/* Your function will be put here */

void ReadString( char s[] )
{
	strcpy(s,"abcABC  \n\n中国");
}
void StringCount( char s[] )
{
	int i=0,letter=0,blank=0,digit=0,other=0;
	while(s[i] != '\0')
	{
		if((s[i]<='z' && s[i]>='a') || (s[i]<='Z' && s[i]>='A'))
		{letter++;}
		else if(s[i]==' ')
		{blank++;}
		else if(s[i]=='\n')
		{digit++;}
		else
		{other++;}
		i++;
	}
	printf("letter = %d, blank = %d, digit = %d, other = %d",letter,blank,digit,other);
}